package com.phs.main.web.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 报修维修表
 * </p>
 *
 * @author Trent
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode
@ApiModel(value = "Repair对象", description = "报修维修表")
public class Repair implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "报修编号", hidden = true)
	@TableId(value = "r_ID", type = IdType.AUTO)
	private Long rId;

	@ApiModelProperty(value = "报修业主姓名")
	@TableField("r_name")
	private String rName;

	@ApiModelProperty(value = "业主编号")
	@TableField("user_ID")
	private Long userId;

	@ApiModelProperty(value = "业主房产编号")
	@TableField("house_ID")
	private Long houseId;

	@ApiModelProperty(value = "业主的报修详情")
	@TableField("r_detail")
	private String rDetail;

	@ApiModelProperty(value = "业主电话号码")
	private String phone;

	@ApiModelProperty(value = "业主报修时间")
	@TableField("r_time")
	private LocalDateTime rTime;

	@ApiModelProperty(value = "维修人姓名")
	private String maintainer;

	@ApiModelProperty(value = "维修人电话")
	@TableField("m_phone")
	private String mPhone;

	@ApiModelProperty(value = "0：未修;1：在修;2：已修")
	@TableField("m_status")
	private Integer mStatus;

	@ApiModelProperty(value = "检修维修详情")
	@TableField("m_detail")
	private String mDetail;

	@ApiModelProperty(value = "0：验收通过;1：异常，需再修")
	@TableField("r_check")
	private Integer rCheck;

	@ApiModelProperty(value = "0：满意;1：比较满意;2：不满意")
	@TableField("r_evaluate")
	private Integer rEvaluate;

	@ApiModelProperty(value = "0：家电维修;1：水电维修;2：空调维修;3：房屋漏水;4.管道疏通;5.电梯维修;6.公共路灯;7.其他")
	private Integer repairType;


}
